package com.fix.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.fix.dao.HerosMapper;
import com.fix.entity.Heros;
import com.fix.service.HeroService;
import com.github.pagehelper.PageHelper;

@Service
public class HeroServiceImpl implements HeroService {
	
	@Autowired
	HerosMapper heroDao;

	public List<Heros> getPage(Integer p) {
		
		PageHelper.startPage(p, 10);  //分页插件
		return heroDao.getAll();
	}

}
